<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('分配数据')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-data-edit" >
                <div class="form-group">
                    <label class="col-sm-3 control-label">数据ID：</label>
                    <div class="col-sm-8">
                        <input type="text" name="dataId" readonly th:value="${dataId}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">用户列表：</label>
                    <div class="col-sm-8">
                        <select class="form-control" name="userId" th:value="${userId}">
                            <option th:each="item:${userInfoList}" th:text="${item.adminUserName}" th:value="${item.adminUserId}"></option>
                        </select>
                    </div>
                </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "special/agency/data";

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/dataGrantInfo", $('#form-data-edit').serialize());
            }
        }

    </script>
</body>
</html>